package edu.cmu.cs.webapp.ioms.actions.order;

import org.eclipse.jface.action.IAction;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.ui.IViewActionDelegate;
import org.eclipse.ui.IViewPart;

import edu.cmu.cs.webapp.ioms.views.CustomersListView;

/**
 * 
 * @author Christian
 * 
 */
public class ShowHideOrdersViewAction implements IViewActionDelegate {
	private CustomersListView view;

	@Override
	public void init(IViewPart view) {
		this.view = (CustomersListView) view;
	}

	@Override
	public void run(IAction action) {
		this.view.hideCustomerOrdersView(!action.isChecked());
	}

	@Override
	public void selectionChanged(IAction action, ISelection selection) {
		// TODO Auto-generated method stub

	}

}
